#if !defined(__HTTP_TOOLS_H__)
#define __HTTP_TOOLS_H__

#include "esp_http_server.h"
const char *get_path_from_uri(char *dest, const char *base_path, const char *uri, size_t destsize);
esp_err_t httpd_send_file(httpd_req_t *req, char *path);
char *http_server_get_req_ip(httpd_req_t *req);
#ifdef CONFIG_LIBS_USE_CJSON
uint8_t json_object_has_item(httpd_req_t *req, cJSON *json, char *name);
char *json_get_string(httpd_req_t *req, cJSON *json, char *item);
cJSON *http_server_data_parse_to_json(httpd_req_t *req, uint8_t is_obj);
#endif

#endif // __HTTP_TOOLS_H__
